from selenium.webdriver.common.by import By
class SchoolAlbumLocators():

    # 学校相册
    # 学校相册菜单
    school_album = (By.XPATH, '/html/body/div[1]/div[1]/aside/div/ul/li[5]/span')

    # 创建相册按钮
    create_pic_albums = (By.XPATH, '/html/body/div[1]/div[2]/main/div[2]/div[1]/div/div[1]/div/button/span')
    # 创建相册/名称
    albums_name = (By.XPATH, '//input[@placeholder="请输入相册名称"]')
    # 名称提示信息
    albums_name_tips = (By.XPATH, '/html/body/div[1]/div[2]/main/div[2]/div[2]/div/div[2]/form/div[1]/div/div[2]')
    # 是否置顶/是
    top_y = (By.XPATH, '//label[@class="el-radio is-checked"]/span/span')
    top_n = (By.XPATH, '//label[@class="el-radio"]/span/span')

    # 创建相册/取消
    cancel_albums = (By.XPATH, '//div[@aria-label="创建相册"]/div[3]/div/button[1]/span')
    # 创建相册/提交
    submit_albums = (By.XPATH, '//div[@aria-label="创建相册"]/div[3]/div/button[2]/span')
    # 删除相册/系统提示  确定删除
    sure_del = (By.XPATH, '//div[@class="el-message-box"]/div[3]/button[2]/span')
    cancel_del = (By.XPATH, '//div[@class="el-message-box"]/div[3]/button[1]/span')
    # 查找
    search = (By.CSS_SELECTOR, 'input[placeholder="请输入标题名称"]')
    # 暂无数据img
    img = (By.XPATH, '/html/body/div[1]/div[2]/main/div[2]/div[1]/div/div[2]/div/img')

    # 查找后列表第一个相册
    first_albuns = (By.XPATH, '//div[@class="el-card__body"]/div[2]/div[1]/div[1]/div[2]')
    # 删除
    dle = (By.XPATH, '//div[@class="el-card__body"]/div[2]/div[1]/div/div[3]/button[3]/span')
    # 查看
    view = (By.XPATH, '//div[@class="el-card__body"]/div[2]/div[1]/div/div[3]/button[1]/span')
    # 查看/暂无信息
    view_pic = (By.XPATH, '//div[@class="el-card content-box text-center is-never-shadow"]/div/div[2]')
    # 查看/图片文字标签
    view_text1 = (By.XPATH, '//div[@class="el-card is-never-shadow"]/div/div[1]/label')
    view_text2 = (By.XPATH, '//div[@class="el-card is-never-shadow"]/div/div[2]/label')
    view_text3 = (By.XPATH, '//div[@class="el-card is-never-shadow"]/div/div[3]/label')
    # 取消查看
    view_cancel = (By.XPATH, '//main[@class="site-content"]/div[2]/div[5]/div/div[3]/span/button/span')

    # 上传
    input_click = (By.XPATH, '//div[@class="el-card__body"]/div[2]/div[1]/div/div[3]/button[2]/span')
    # 上传input标签
    input_pic = (By.XPATH, '//label[@class="uploader-btn"]/input')
    # 上传照片/删除图标
    pic = (By.XPATH, '//div[@class="album-upload-list"]/ul/li/img')
    delete = (By.XPATH, '//div[@class="album-upload-list"]/ul/li[1]/span/span')
    su = (By.XPATH, '//div[@class="el-message-box"]/div[3]/button[2]/span')
    unsu = (By.XPATH, '//div[@class="el-message-box"]/div[3]/button[1]/span')
    tip = (By.XPATH, '//div[@class="album-upload-list"]/ul/li/i[2]')
    # 确定
    sure = (By.XPATH, '//div[@class="album_management"]/div[5]/div/div[3]/span/button[2]/span')
    # 取消
    unsure = (By.XPATH, '//div[@class="album_management"]/div[5]/div/div[3]/span/button[1]/span')
    # 提示信息
    input_tips = (By.XPATH, '//div[@role="alert"]/p')

    ele = (By.XPATH, '//div[@role="alert"]/p')

    # 上传图片/温馨提示
    upload_tips = (By.XPATH, '//div[text()="温馨提示：支持格式"]')